home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 48 / PC Gamer IT CD 48 1-2.iso / age2 / AoE2demo.exe / 1033 / CABFILE / MSGAME.CAB / Data / gamedata.drs / Unnamed File 000023.bina < prev    next >
Text File  |  1999-10-01  |  19KB  |  820 lines

  1. ;THE BULLY
  2. #load-if-not-defined TEAMS-LOCKED
  3.  
  4.     (defrule
  5.         (true)
  6.     =>
  7.         (set-goal personality NOTICE)
  8.         (set-goal get-mad NO)
  9.         (disable-self)
  10.     )
  11.  
  12.     (defrule
  13.         (goal personality NOTICE)
  14.         (taunt-detected any-computer-ally 218)
  15.     =>
  16.         (set-goal personality 12)
  17.         (set-stance every-human enemy)
  18.         (acknowledge-taunt this-any-computer-ally 218)
  19.         (set-stance every-computer ally)
  20.         (disable-self)
  21.     )
  22.  
  23.     (defrule
  24.         (goal personality NOTICE)
  25.         (difficulty <= moderate)
  26.         (building-type-count house > 0)
  27.         (player-in-game any-computer-ally)
  28.     =>
  29.         (set-goal personality 50)
  30.         (disable-self)
  31.     )
  32.  
  33.     (defrule
  34.         (goal personality 50)
  35.     =>
  36.         (generate-random-number 4)
  37.         (set-goal 36 NO)
  38.         (set-goal 37 NO)
  39.         (set-goal 38 NO)
  40.         (set-goal 39 NO)
  41.         (disable-self)
  42.     )
  43.  
  44.     (defrule
  45.         (goal personality 50)
  46.         (random-number == 1)
  47.     =>
  48.         (set-goal personality ALLY)
  49.         (disable-self)
  50.     )
  51.  
  52.     (defrule
  53.         (goal personality 50)
  54.         (difficulty == moderate)
  55.         (or
  56.             (random-number == 2)
  57.             (random-number == 3)
  58.         )
  59.     =>
  60.         (set-goal personality ALLY)
  61.         (disable-self)
  62.     )
  63.  
  64.     (defrule
  65.         (goal personality 50)
  66.         (difficulty < moderate)
  67.         (or
  68.             (random-number == 2)
  69.             (random-number == 3)
  70.         )
  71.     =>
  72.         (set-goal personality BULLY)
  73.         (disable-self)
  74.     )
  75.  
  76.     (defrule
  77.         (goal personality 50)
  78.         (random-number == 4)
  79.     =>
  80.         (set-goal personality BULLY)
  81.         (disable-self)
  82.     )
  83.  
  84.     ;make sure the other AIs don't try this!
  85.     (defrule
  86.         (or
  87.             (goal personality BULLY)
  88.             (goal personality ALLY)
  89.         )
  90.     =>
  91.         (chat-to-player-using-id every-computer 22400)    ;"218"
  92.         (disable-self)
  93.     )
  94.  
  95.     ;no early rush!
  96.     (defrule
  97.         (or
  98.             (goal personality BULLY)
  99.             (goal personality ALLY)
  100.         )
  101.         (or
  102.             (goal rush-control 2)
  103.             (goal rush-control RUSHING)
  104.         )
  105.     =>
  106.         (set-goal rush-control 4)
  107.     )
  108.  
  109. ;end the deal
  110. (defrule
  111.     (stance-toward any-human enemy)
  112.     (or
  113.         (goal personality BULLY)
  114.         (goal personality ALLY)
  115.     )
  116. =>
  117.     (set-stance this-any-human neutral)
  118.     (set-stance every-computer neutral)
  119.     (disable-self)
  120. )
  121.  
  122. ;*******************************************************8
  123. ;bully rules
  124.  
  125. (defrule
  126.     (goal personality BULLY)
  127.     (goal get-mad NO)
  128.     (current-age >= feudal-age)
  129. =>
  130.     (enable-timer t-chat 300)
  131.     (set-goal 25 NOTICE)
  132.     (disable-self)
  133. )
  134.  
  135. (defrule
  136.     (goal personality BULLY)
  137.     (goal 25 NOTICE)
  138.     (timer-triggered t-chat)
  139. =>
  140.     (generate-random-number 4)
  141. )
  142.  
  143. ;***************************************************
  144. ;feudal age demands
  145. (defrule
  146.     (goal personality BULLY)
  147.     (goal 25 NOTICE)
  148.     (current-age == feudal-age)
  149.     (timer-triggered t-chat)
  150.     (stance-toward any-human neutral)
  151.     (random-number == 1)
  152. =>
  153.     (chat-to-player-using-id this-any-human 22039)
  154.     (chat-to-player-using-id this-any-human 22037)
  155.         ;"Give me 100 wood or face my wrath!"
  156.         ;"Thou hast but 3 minutes to obey!"
  157.     (set-goal 25 WOOD)
  158.     (clear-tribute-memory this-any-human wood)
  159.     (disable-timer t-chat)
  160.     (enable-timer t-chat 200)
  161. )
  162.  
  163. (defrule
  164.     (goal personality BULLY)
  165.     (goal 25 NOTICE)
  166.     (current-age == feudal-age)
  167.     (timer-triggered t-chat)
  168.     (stance-toward any-human neutral)
  169.     (random-number == 2)
  170. =>
  171.     (chat-to-player-using-id this-any-human 22038)
  172.     (chat-to-player-using-id this-any-human 22037)
  173.         ;"Give me 100 food or face my wrath!"
  174.         ;"Thou hast but 3 minutes to obey!"
  175.     (set-goal 25 FOOD)
  176.     (clear-tribute-memory this-any-human food)
  177.     (disable-timer t-chat)
  178.     (enable-timer t-chat 200)
  179. )
  180.  
  181. (defrule
  182.     (goal personality BULLY)
  183.     (goal 25 NOTICE)
  184.     (current-age == feudal-age)
  185.     (timer-triggered t-chat)
  186.     (stance-toward any-human neutral)
  187.     (random-number == 3)
  188. =>
  189.     (chat-to-player-using-id this-any-human 22036)
  190.     (chat-to-player-using-id this-any-human 22037)
  191.         ;"Give me 100 gold or face my wrath!"
  192.         ;"Thou hast but 3 minutes to obey!"
  193.     (set-goal 25 GOLD)
  194.     (clear-tribute-memory this-any-human gold)
  195.     (disable-timer t-chat)
  196.     (enable-timer t-chat 200)
  197. )
  198.  
  199. (defrule
  200.     (goal personality BULLY)
  201.     (goal 25 NOTICE)
  202.     (current-age == feudal-age)
  203.     (timer-triggered t-chat)
  204.     (stance-toward any-human neutral)
  205.     (random-number == 4)
  206. =>
  207.     (chat-to-player-using-id this-any-human 22040)
  208.     (chat-to-player-using-id this-any-human 22037)
  209.         ;"Give me 100 stone or face my wrath!"
  210.         ;"Thou hast but 3 minutes to obey!"
  211.     (set-goal 25 STONE)
  212.     (clear-tribute-memory this-any-human stone)
  213.     (disable-timer t-chat)
  214.     (enable-timer t-chat 200)
  215. )
  216.  
  217. (defrule
  218.     (goal personality BULLY)
  219.     (or
  220.         (and
  221.             (goal 25 WOOD)
  222.             (players-tribute-memory any-human-neutral wood >= 100)
  223.         )
  224.         (and
  225.             (goal 25 FOOD)
  226.             (players-tribute-memory any-human-neutral food >= 100)
  227.         )
  228.     )
  229. =>
  230.     (chat-to-player-using-id this-any-human-neutral 22041)
  231.         ;"Well done! Thou art still in my good graces."
  232.     (set-goal 25 NOTICE)
  233.     (disable-timer t-chat)
  234.     (enable-timer t-chat 360)
  235. )
  236.  
  237. (defrule
  238.     (goal personality BULLY)
  239.     (or
  240.         (and
  241.             (goal 25 GOLD)
  242.             (players-tribute-memory any-human-neutral gold >= 100)
  243.         )
  244.         (and
  245.             (goal 25 STONE)
  246.             (players-tribute-memory any-human-neutral stone >= 100)
  247.         )
  248.     )
  249. =>
  250.     (chat-to-player-using-id this-any-human-neutral 22041)
  251.         ;"Well done! Thou art still in my good graces."
  252.     (set-goal 25 NOTICE)
  253.     (disable-timer t-chat)
  254.     (enable-timer t-chat 360)
  255. )
  256.  
  257. (defrule
  258.     (goal personality BULLY)
  259.     (timer-triggered t-chat)
  260.     (or
  261.         (or
  262.             (goal 25 WOOD)
  263.             (goal 25 FOOD)
  264.         )
  265.         (or
  266.             (goal 25 GOLD)
  267.             (goal 25 STONE)
  268.         )
  269.     )
  270. =>
  271.     (set-goal personality 10)
  272.     (disable-timer t-chat)
  273.     (disable-self)
  274. )
  275.  
  276. ;***************************************************
  277. ;castle-age demands
  278. (defrule
  279.     (goal personality BULLY)
  280.     (goal 25 NOTICE)
  281.     (timer-triggered t-chat)
  282.     (current-age == castle-age)
  283.     (stance-toward any-human neutral)
  284.     (random-number == 1)
  285. =>
  286.     (chat-to-player-using-id this-any-human 22045)
  287.         ;"Thou hast but 2 minutes to send me 200 wood or face the consequences!"
  288.     (set-goal 25 CASTLE-AGE-WOOD)
  289.     (clear-tribute-memory this-any-human wood)
  290.     (disable-timer t-chat)
  291.     (enable-timer t-chat 150)
  292. )
  293.  
  294. (defrule
  295.     (goal personality BULLY)
  296.     (goal 25 NOTICE)
  297.     (timer-triggered t-chat)
  298.     (current-age == castle-age)
  299.     (stance-toward any-human neutral)
  300.     (random-number == 2)
  301. =>
  302.     (chat-to-player-using-id this-any-human 22043)
  303.         ;"Thou hast but 2 minutes to send me 200 food or face the consequences!"
  304.     (set-goal 25 CASTLE-AGE-FOOD)
  305.     (clear-tribute-memory this-any-human food)
  306.     (disable-timer t-chat)
  307.     (enable-timer t-chat 150)
  308. )
  309.  
  310. (defrule
  311.     (goal personality BULLY)
  312.     (goal 25 NOTICE)
  313.     (timer-triggered t-chat)
  314.     (current-age == castle-age)
  315.     (stance-toward any-human neutral)
  316.     (random-number == 3)
  317. =>
  318.     (chat-to-player-using-id this-any-human 22042)
  319.         ;"Thou hast but 2 minutes to send me 200 gold or face the consequences!"
  320.     (set-goal 25 CASTLE-AGE-GOLD)
  321.     (clear-tribute-memory this-any-human gold)
  322.     (disable-timer t-chat)
  323.     (enable-timer t-chat 150)
  324. )
  325.  
  326. (defrule
  327.     (goal personality BULLY)
  328.     (goal 25 NOTICE)
  329.     (timer-triggered t-chat)
  330.     (current-age == castle-age)
  331.     (stance-toward any-human neutral)
  332.     (random-number == 3)
  333. =>
  334.     (chat-to-player-using-id this-any-human 22044)
  335.         ;"Thou hast but 2 minutes to send me 200 stone or face the consequences!"
  336.     (set-goal 25 CASTLE-AGE-STONE)
  337.     (clear-tribute-memory this-any-human stone)
  338.     (disable-timer t-chat)
  339.     (enable-timer t-chat 150)
  340. )
  341.  
  342. (defrule
  343.     (goal personality BULLY)
  344.     (or
  345.         (and
  346.             (goal 25 CASTLE-AGE-WOOD)
  347.             (players-tribute-memory any-human-neutral wood >= 200)
  348.         )
  349.         (and
  350.             (goal 25 CASTLE-AGE-FOOD)
  351.             (players-tribute-memory any-human-neutral food >= 200)
  352.         )
  353.     )
  354. =>
  355.     (chat-to-player-using-id this-any-human-neutral 22046)
  356.         ;"Thank thee! Thy tribute shall be put to good use."
  357.     (set-goal 25 NOTICE)
  358.     (disable-timer t-chat)
  359.     (enable-timer t-chat 360)
  360. )
  361.  
  362. (defrule
  363.     (goal personality BULLY)
  364.     (or
  365.         (and
  366.             (goal 25 CASTLE-AGE-GOLD)
  367.             (players-tribute-memory any-human-neutral gold >= 200)
  368.         )
  369.         (and
  370.             (goal 25 CASTLE-AGE-STONE)
  371.             (players-tribute-memory any-human-neutral stone >= 200)
  372.         )
  373.     )
  374. =>
  375.     (chat-to-player-using-id this-any-human-neutral 22046)
  376.         ;"Thank thee! Thy tribute shall be put to good use."
  377.     (set-goal 25 NOTICE)
  378.     (disable-timer t-chat)
  379.     (enable-timer t-chat 360)
  380. )
  381.  
  382. (defrule
  383.     (goal personality BULLY)
  384.     (timer-triggered t-chat)
  385.     (or
  386.         (or
  387.             (goal 25 CASTLE-AGE-WOOD)
  388.             (goal 25 CASTLE-AGE-FOOD)
  389.         )
  390.         (or
  391.             (goal 25 CASTLE-AGE-GOLD)
  392.             (goal 25 CASTLE-AGE-STONE)
  393.         )
  394.     )
  395. =>
  396.     (set-goal personality 10)
  397.     (disable-timer t-chat)
  398.     (disable-self)
  399. )
  400. ;***************************************************
  401. ;Imperial age demands
  402. (defrule
  403.     (timer-triggered t-chat)
  404.     (goal personality BULLY)
  405.     (current-age == imperial-age)
  406.     (stance-toward any-human neutral)
  407.     (random-number == 1)
  408. =>
  409.     (chat-to-player-using-id this-any-human 22047)
  410.     (chat-to-player-using-id this-any-human 22048)
  411.         ;"Send me 500 wood in tribute or die!"
  412.         ;"As usual, thou hast 2 minutes to comply."
  413.     (set-goal 25 IMPERIAL-AGE-WOOD)
  414.     (clear-tribute-memory this-any-human wood)
  415.     (disable-timer t-chat)
  416.     (enable-timer t-chat 150)
  417. )
  418.  
  419. (defrule
  420.     (timer-triggered t-chat)
  421.     (goal personality BULLY)
  422.     (current-age == imperial-age)
  423.     (stance-toward any-human neutral)
  424.     (random-number == 2)
  425. =>
  426.     (chat-to-player-using-id this-any-human 22049)
  427.     (chat-to-player-using-id this-any-human 22048)
  428.         ;"Send me 500 food in tribute or die!"
  429.         ;"As usual, thou hast 2 minutes to comply."
  430.     (set-goal 25 IMPERIAL-AGE-FOOD)
  431.     (clear-tribute-memory this-any-human food)
  432.     (disable-timer t-chat)
  433.     (enable-timer t-chat 150)
  434. )
  435.  
  436. (defrule
  437.     (timer-triggered t-chat)
  438.     (goal personality BULLY)
  439.     (current-age == imperial-age)
  440.     (stance-toward any-human neutral)
  441.     (random-number == 3)
  442. =>
  443.     (chat-to-player-using-id this-any-human 22050)
  444.     (chat-to-player-using-id this-any-human 22048)
  445.         ;"Send me 500 gold in tribute or die!"
  446.         ;"As usual, thou hast 2 minutes to comply."
  447.     (set-goal 25 IMPERIAL-AGE-GOLD)
  448.     (clear-tribute-memory this-any-human gold)
  449.     (disable-timer t-chat)
  450.     (enable-timer t-chat 150)
  451. )
  452.  
  453. (defrule
  454.     (timer-triggered t-chat)
  455.     (goal personality BULLY)
  456.     (current-age == imperial-age)
  457.     (stance-toward any-human neutral)
  458.     (random-number == 4)
  459. =>
  460.     (chat-to-player-using-id this-any-human 22051)
  461.     (chat-to-player-using-id this-any-human 22048)
  462.         ;"Send me 500 stone in tribute or die!"
  463.         ;"As usual, thou hast 2 minutes to comply."
  464.     (set-goal 25 IMPERIAL-AGE-STONE)
  465.     (clear-tribute-memory this-any-human stone)
  466.     (disable-timer t-chat)
  467.     (enable-timer t-chat 150)
  468. )
  469.  
  470. (defrule
  471.     (goal personality BULLY)
  472.     (or
  473.         (and
  474.             (goal 25 IMPERIAL-AGE-WOOD)
  475.             (players-tribute-memory any-human-neutral wood >= 500)
  476.         )
  477.         (and
  478.             (goal 25 IMPERIAL-AGE-FOOD)
  479.             (players-tribute-memory any-human-neutral food >= 500)
  480.         )
  481.     )
  482. =>
  483.     (chat-to-player-using-id this-any-human-neutral 22052)
  484.         ;"Excellent! Thou hast done acceptably, and are safe for now."
  485.     (set-goal 25 NOTICE)
  486.     (disable-timer t-chat)
  487.     (enable-timer t-chat 360)
  488. )
  489.  
  490. (defrule
  491.     (goal personality BULLY)
  492.     (or
  493.         (and
  494.             (goal 25 IMPERIAL-AGE-GOLD)
  495.             (players-tribute-memory any-human-neutral gold >= 500)
  496.         )
  497.         (and
  498.             (goal 25 IMPERIAL-AGE-STONE)
  499.             (players-tribute-memory any-human-neutral stone >= 500)
  500.         )
  501.     )
  502. =>
  503.     (chat-to-player-using-id this-any-human-neutral 22052)
  504.         ;"Excellent! Thou hast done acceptably, and are safe for now."
  505.     (set-goal 25 NOTICE)
  506.     (disable-timer t-chat)
  507.     (enable-timer t-chat 360)
  508. )
  509.  
  510. (defrule
  511.     (goal personality BULLY)
  512.     (timer-triggered t-chat)
  513.     (or
  514.         (or
  515.             (goal 25 IMPERIAL-AGE-WOOD)
  516.             (goal 25 IMPERIAL-AGE-FOOD)
  517.         )
  518.         (or
  519.             (goal 25 IMPERIAL-AGE-GOLD)
  520.             (goal 25 IMPERIAL-AGE-STONE)
  521.         )
  522.     )
  523. =>
  524.     (set-goal personality 10)
  525.     (disable-timer t-chat)
  526.     (disable-self)
  527. )
  528.  
  529. ;lots and lots of tribute
  530. (defrule
  531.     (goal personality BULLY)
  532.     (players-tribute any-human-neutral wood > 500)
  533.     (players-tribute any-human-neutral food > 500)
  534.     (players-tribute any-human-neutral gold > 500)
  535.     (players-tribute any-human-neutral stone > 500)
  536. =>
  537.     (set-stance this-any-human ally)
  538.     (set-stance every-computer enemy)
  539.     (chat-to-player-using-id this-any-human 22053)
  540.         ;"Thou art a most worthy fellow. I hereby declare us friends."
  541.     (set-goal personality NO)
  542.     (disable-timer t-chat)
  543.     (disable-self)
  544. )
  545.  
  546. (defrule
  547.     (goal personality BULLY)
  548.     (or
  549.         (or
  550.             (players-tribute any-human-neutral wood >= 1500)
  551.             (players-tribute any-human-neutral food >= 1500)
  552.         )
  553.         (or
  554.             (players-tribute any-human-neutral gold >= 1500)
  555.             (players-tribute any-human-neutral stone >= 1500)
  556.         )
  557.     )
  558. =>
  559.     (set-stance this-any-human ally)
  560.     (set-stance every-computer enemy)
  561.     (chat-to-player-using-id this-any-human 22053)
  562.         ;"Thou art a most worthy fellow. I hereby declare us friends."
  563.     (set-goal personality NO)
  564.     (disable-timer t-chat)
  565.     (disable-self)
  566. )
  567.  
  568. ;********************************************
  569. ;********************************************
  570. ;THE ALLY RULES (goal personality ALLY)
  571.  
  572.     (defrule
  573.         (goal personality ALLY)
  574.         (goal get-mad NO)
  575.         (stance-toward any-human neutral)
  576.         (current-age == feudal-age)
  577.         (game-time > 600)
  578.     =>
  579.         (chat-to-player-using-id this-any-human 22055)
  580.         (chat-to-player-using-id this-any-human 22056)
  581.             ;"Send me 500 each of wood, food, gold, and stone!"
  582.             ;"If thou dost this thing, I shall join thine side."
  583.         (set-goal get-mad YES)
  584.         (disable-self)
  585.     )
  586.  
  587.     (defrule
  588.         (goal personality ALLY)
  589.         (goal get-mad YES)
  590.         (starting-resources == low-resources)
  591.     =>
  592.         (enable-timer t-chat 600)
  593.         (disable-self)
  594.     )
  595.  
  596.     (defrule
  597.         (goal personality ALLY)
  598.         (goal get-mad YES)
  599.         (starting-resources == medium-resources)
  600.     =>
  601.         (enable-timer t-chat 300)
  602.         (disable-self)
  603.     )
  604.  
  605.     (defrule
  606.         (goal personality ALLY)
  607.         (goal get-mad YES)
  608.         (starting-resources == high-resources)
  609.     =>
  610.         (enable-timer t-chat 150)
  611.         (disable-self)
  612.     )
  613.  
  614.     (defrule
  615.         (goal personality ALLY)
  616.         (timer-triggered t-chat)
  617.         (players-tribute any-human-neutral wood < 500)
  618.     =>
  619.         (chat-to-player-using-id this-any-human-neutral 22057)
  620.             ;"Thou must send more wood if thou wishest me to be thine ally!"
  621.         (disable-timer t-chat)
  622.         (enable-timer t-chat 300)
  623.     )
  624.  
  625.     (defrule
  626.         (timer-triggered t-chat)
  627.         (goal personality ALLY)
  628.         (players-tribute any-human-neutral food < 500)
  629.     =>
  630.         (chat-to-player-using-id this-any-human-neutral 22058)
  631.             ;"Thou must send more food if thou wishest me to be thine ally!"
  632.         (disable-timer t-chat)
  633.         (enable-timer t-chat 300)
  634.     )
  635.  
  636.     (defrule
  637.         (timer-triggered t-chat)
  638.         (goal personality ALLY)
  639.         (players-tribute any-human-neutral gold < 500)
  640.     =>
  641.         (chat-to-player-using-id this-any-human-neutral 22059)
  642.             ;"Thou must send more gold if thou wishest me to be thine ally!"
  643.         (disable-timer t-chat)
  644.         (enable-timer t-chat 300)
  645.     )
  646.  
  647.     (defrule
  648.         (timer-triggered t-chat)
  649.         (goal personality ALLY)
  650.         (players-tribute any-human-neutral stone < 500)
  651.     =>
  652.         (chat-to-player-using-id this-any-human-neutral 22060)
  653.             ;"Thou must send more stone if thou wishest me to be thine ally!"
  654.         (disable-timer t-chat)
  655.         (enable-timer t-chat 300)
  656.         (disable-self)
  657.     )
  658.  
  659.     (defrule
  660.         (goal personality ALLY)
  661.         (players-tribute any-human-neutral wood >= 500)
  662.     =>
  663.         (chat-to-player-using-id this-any-human-neutral 22061)
  664.             ;"Thank thee for the wood! It is enough."
  665.         (clear-tribute-memory this-any-human-neutral wood)
  666.         (set-goal 36 YES)
  667.         (disable-self)
  668.     )
  669.  
  670.     (defrule
  671.         (goal personality ALLY)
  672.         (players-tribute any-human-neutral food >= 500)
  673.     =>
  674.         (chat-to-player-using-id this-any-human-neutral 22062)
  675.             ;"Thank thee for the food! It is enough."
  676.         (clear-tribute-memory this-any-human-neutral food)
  677.         (set-goal 37 YES)
  678.         (disable-self)
  679.     )
  680.  
  681.     (defrule
  682.         (goal personality ALLY)
  683.         (players-tribute any-human-neutral gold >= 500)
  684.     =>
  685.         (chat-to-player-using-id this-any-human-neutral 22063)
  686.             ;"Thank thee for the gold! It is enough."
  687.         (clear-tribute-memory this-any-human-neutral gold)
  688.         (disable-self)
  689.     )
  690.  
  691.     (defrule
  692.         (goal personality ALLY)
  693.         (players-tribute any-human-neutral stone >= 500)
  694.     =>
  695.         (chat-to-player-using-id this-any-human-neutral 22064)
  696.             ;"Thank thee for the stone! It is enough."
  697.         (clear-tribute-memory this-any-human-neutral stone)
  698.         (set-goal 38 YES)
  699.         (disable-self)
  700.     )
  701.  
  702.     (defrule
  703.         (goal personality ALLY)
  704.         (goal 36 YES)
  705.         (players-tribute-memory any-human-neutral wood > 0)
  706.     =>
  707.         (chat-to-player-using-id this-any-human-neutral 22065)
  708.             ;"Thou hast sent me sufficient wood!! Pray, send no more."
  709.         (clear-tribute-memory this-any-human-neutral wood)
  710.         (set-goal 39 YES)
  711.         (disable-self)
  712.     )
  713.  
  714.     (defrule
  715.         (goal personality ALLY)
  716.         (goal 37 YES)
  717.         (players-tribute-memory any-human-neutral food > 0)
  718.     =>
  719.         (chat-to-player-using-id this-any-human-neutral 22066)
  720.             ;"Thou hast sent me sufficient food!! Pray, send no more."
  721.         (clear-tribute-memory this-any-human-neutral food)
  722.     )
  723.  
  724.     (defrule
  725.         (goal personality ALLY)
  726.         (goal 38 YES)
  727.         (players-tribute-memory any-human-neutral gold > 0)
  728.     =>
  729.         (chat-to-player-using-id this-any-human-neutral 22067)
  730.             ;"Thou hast sent me sufficient gold!! Pray, send no more."
  731.         (clear-tribute-memory this-any-human-neutral gold)
  732.     )
  733.  
  734.     (defrule
  735.         (goal personality ALLY)
  736.         (goal 39 YES)
  737.         (players-tribute-memory any-human-neutral stone > 0)
  738.     =>
  739.         (chat-to-player-using-id this-any-human-neutral 22068)
  740.             ;"Thou hast sent me sufficient stone!! Pray, send no more."
  741.         (clear-tribute-memory this-any-human-neutral stone)
  742.     )
  743.  
  744.     (defrule
  745.         (goal personality ALLY)
  746.         (players-tribute any-human-neutral wood >= 500)
  747.         (players-tribute any-human-neutral food >= 500)
  748.         (players-tribute any-human-neutral gold >= 500)
  749.         (players-tribute any-human-neutral stone >= 500)
  750.         (stance-toward any-human neutral)
  751.     =>
  752.         (chat-to-player-using-id this-any-human 22016)
  753.         (chat-to-player-using-id this-any-human 22003)
  754.             ;"The goods we have obtained from you are glorious indeed!"
  755.             ;"Let us be friends henceforth!"
  756.         (set-stance this-any-human ally)
  757.         (set-stance every-computer enemy)
  758.         (set-goal personality NO)
  759.         (disable-self)
  760.     )
  761.  
  762. ;*************************************************
  763. ;MODERATE DIFFICULTY
  764.     (defrule
  765.         (goal personality ALLY)
  766.         (game-time > 4800)
  767.         (stance-toward any-human neutral)
  768.         (difficulty == moderate)
  769.         (or
  770.             (or
  771.                 (goal 36 NO)
  772.                 (goal 37 NO)
  773.             )
  774.             (or
  775.                 (goal 38 NO)
  776.                 (goal 39 NO)
  777.             )
  778.         )
  779.     =>
  780.         (chat-to-player-using-id this-any-human 22069)
  781.         (chat-to-player-using-id this-any-human 22070)
  782.             ;"I have waited far too long for the promised tribute!"
  783.             ;"Thou art exceedingly lax in fulfilling my requests."
  784.         (set-stance this-any-human enemy)
  785.         (set-stance every-computer ally)
  786.         (set-goal personality 10)
  787.     )
  788.  
  789. ;*************************************************
  790. ;HARD+ DIFFICULTY
  791.     (defrule
  792.         (goal personality ALLY)
  793.         (game-time > 3600)
  794.         (stance-toward any-human neutral)
  795.         (difficulty <= hard)
  796.         (or
  797.             (or
  798.                 (goal 36 NO)
  799.                 (goal 37 NO)
  800.             )
  801.             (or
  802.                 (goal 38 NO)
  803.                 (goal 39 NO)
  804.             )
  805.         )
  806.     =>
  807.         (chat-to-player-using-id this-any-human 22069)
  808.         (chat-to-player-using-id this-any-human 22070)
  809.             ;"I have waited far too long for the promised tribute!"
  810.             ;"Thou art exceedingly lax in fulfilling my requests."
  811.         (set-stance this-any-human enemy)
  812.         (set-stance every-computer ally)
  813.         (set-goal personality 10)
  814.     )
  815.  
  816. ;*************************************************
  817. #end-if
  818.  
  819.  
  820.